@Data
public class UserVO {
    private Long id;
    private String phone;
    private String name;
    private String gender;
    private String userType;
    private LocalDateTime createTime;

    public static UserVO fromUser(User user) {
        UserVO vo = new UserVO();
        vo.setId(user.getId());
        vo.setPhone(user.getPhone());
        vo.setName(user.getName());
        vo.setGender(user.getGender());
        vo.setUserType(user.getUserType());
        vo.setCreateTime(user.getCreateTime());
        return vo;
    }
}